package com.web.serviceimpl;

import com.web.dao.GradeDao;
import com.web.daoimpl.GradeDaoImpl;
import com.web.entity.Grade;
import com.web.service.GradeService;
import java.util.List;

public class GradeServiceImpl implements GradeService{
    
    GradeDao gradeDao = new GradeDaoImpl();

    @Override
    public List<Grade> findOneStudentGradeBySid(String sid) {
            return gradeDao.findOneStudentGradeBySid(sid);
        }

    @Override
    public List<Grade> findClassGrade(String className, String courseName) {
            return gradeDao.findClassGrade(className, courseName);
    }
    /////////
    @Override
    public int InsertStudentGrade(Grade g) {
        GradeDaoImpl ig=new GradeDaoImpl();
        ig.InsertStudentGrade(g);
        return 0;
    }
    
}
